package com.study.selection.service;

import com.study.selection.model.Classes;

import java.util.List;

public interface ClassesService {
    List<Classes> findAll();

    List<Classes> findByKey(String key);

    boolean addClass(Classes classes);

    //根据班级编号获取对象
    Classes getByClassId(int classId);

    //根据专业编号获取对象
    List<Classes> getByMajorId(int majorId);

    //根据学院编号获取对象
    List<Classes> getByCollegeId(int collegeId);

    boolean updateClass(Classes classes);

    // 逻辑删除
    boolean deleteClass(int classId);
}